package com.gdut.demo3;

import java.util.ArrayList;
import java.util.Collection;

public class Demo3 {
    public static void main(String[] args) {
        Collection<Student> coll = new ArrayList<>();
        Student std1 = new Student("zhangSan", "100");
        Student std2 = new Student("Lisi", "101");
        coll.add(std1);
        coll.add(std2);
        for (Student std : coll) {
            System.out.println(std);
        }
    }
}
